﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silverlight_Client.Commands_Utils;

namespace Silverlight_Client.ViewModels
{
    public class AuthenticationPageVM : IViewModelBase
    {
        #region Fields
        
        private String      _email, _password;
        private ICommand    _createnewaccountcmd, _helpcmd, _signincmd;

        #endregion

        #region Properties

        public String Email
        {
            get { return _email; }
            set
            {
                if (_email == value) return;
                _email = value;
                RaisePropertyChanged("Email");
            }
        }
        public String Password
        {
            get { return _password; }
            set
            {
                if (_password == value) return;
                _password = value;
                RaisePropertyChanged("Password");
            }
        }

        #endregion

        #region Commands

        public ICommand HelpCmd
        {
            get { return _helpcmd; }
        }
        public ICommand CreateNewAccountCmd
        {
            get { return _createnewaccountcmd; }
        }
        public ICommand SignInCmd
        {
            get { return _signincmd; }
        }

        #endregion

        #region Commands Functions
        
        private void        CreateNewAccountFunc()
        {
        }
        private void        HelpFunc()
        {   
        }
        private void        SingInFunc()
        {
        }

        #endregion

        #region Functions
        
        #endregion

        #region Ctor
        
        public AuthenticationPageVM()
        {
            _email = _password = String.Empty;
            _createnewaccountcmd = new RelayCommand(CreateNewAccountFunc) { IsEnabled = true };
            _helpcmd = new RelayCommand(HelpFunc) { IsEnabled = true };
            _signincmd = new RelayCommand(SingInFunc) { IsEnabled = true };
        }
        
        #endregion
    }
}
